
<h3>产品列表</h3>

<html>
<#include "../common/header.ftl">
<link rel="stylesheet" href="/sell/css/style.css">
<body>

<div id="wrapper" class="toggled">
<#-- side bar 侧边栏-->
        <#include "../common/nav.ftl">
<#--主要内容-->
    <div id="page-content-wrapper">
        <div class="container">

            <div class="row clearfix">
                <div class="col-md-12 column">
                    <form role="form" method="post" action="/sell/seller/product/save">
                        <div class="form-group">
                            <label>名称</label>
                            <input type="text" class="form-control" name="productName" value="${(productInfo.productName)!""}"/>

                            <label>价格</label>
                            <input type="text" class="form-control" name="productPrice" value="${(productInfo.productPrice)!""}"/>

                            <label>库存</label>
                            <input type="text" class="form-control" name="productStock" value="${(productInfo.productStock)!""}"/>

                            <label>商品描述</label>
                            <input type="text" class="form-control" name="productDescription" value="${(productInfo.productDescription)!""}"/>

                            <label>商品图片</label>
                            <img src="${(productInfo.productIcon)!""}" width="120" height="80"/>
                            <input type="text" class="form-control" name="productIcon" value="${(productInfo.productIcon)!""}"/>

                            <label>商品类目</label>
                            <#-- 注意商品的类目名称 -- 否则立刻出错  -->
                            <select name="categoryType" class="form-control">
                                <#list categoryList as category>
                                    <option value="${(category.categoryType)!""}"
                                    <#if (productInfo.categoryType)?? && productInfo.categoryType == category.categoryType>
                                        selected
                                    </#if>
                                    >
                                        ${(category.categoryName)!""}
                                    </option>
                                </#list>
                            </select>

                        </div>
                        <input  type="hidden" class="form-control" name="productId" value="${(productInfo.productId)!""}"/>
                       <button type="submit" class="btn btn-default">提交</button>
                    </form>
                </div>
            </div>


        </div>
    </div>
</div>


</body>
</html>